package net.asciiworks.filesyncr.controller {
    import net.asciiworks.filesyncr.ApplicationFacade;
    import net.asciiworks.filesyncr.view.ApplicationMediator;

    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.SimpleCommand;

    public class PrepViewCommand extends SimpleCommand {
        public function PrepViewCommand() {
            super();
        }

        override public function execute(note:INotification):void {
            var app:FileSync = note.getBody() as FileSync;
            facade.registerMediator(new ApplicationMediator(app));
        }
    }
}